/*
 * @Author: byron
 * @Date: 2021-10-22 21:16:26
 * @LastEditTime: 2021-12-28 15:13:09
 */
import { request } from '../http'

// 获取角色列表
export const getRoleList = (params) => request.get('/role/roleList', { params })

// 删除某个角色
export const delRole = (id) => request.delete(`/role/delRole/${id}`)

// 更新角色状态
export const updateRole = (data) => request.put(`/role/updateStatus`, data)

// 新增角色
export const addRole = (data) => request.post(`/role/addRole`, data)

// 编辑角色
export const editRole = (data) => request.put(`/role/editRole`, data)
